package dto;

import java.util.ArrayList;

import controller.EQueryType;

/**
 * DTO for query parse result.
 * @author Stanley
 */
public class QueryParserDTO {
	private EQueryType type;
	private ArrayList<Object> data;

	/**
	 * Constructor
	 * 
	 * @param type
	 * @param data
	 */
	public QueryParserDTO(EQueryType type, ArrayList<Object> data) {
		super();
		this.type = type;
		this.data = data;
	}

	/**
	 * Get type
	 * 
	 * @return
	 */
	public EQueryType getType() {
		return type;
	}

	/**
	 * Set type
	 * 
	 * @param type
	 */
	public void setType(EQueryType type) {
		this.type = type;
	}

	/**
	 * Get data
	 * 
	 * @return ArrayList<Object>
	 */
	public ArrayList<Object> getData() {
		return data;
	}

	/**
	 * Set data
	 * 
	 * @param data
	 *            ArrayList<Object>
	 */
	public void setData(ArrayList<Object> data) {
		this.data = data;
	}
}
